package com.tuyrt.firstcode.kotlin.basic

/**
 * Created by tuyrt7 on 2021/4/6.
 * 空、非空判断
 */
fun nullFunc(study: Study?){
    study?.study()

    //判空 + 否则
    study?.doWork() ?: println("study is null")

    //强制去掉 ?
    study!!.doWork()
}

